home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / oldunits_neweffects / oldunits_neweffects_plazmaballexplosion.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.9 KB  |  177 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_NEWPLAZMABALLEXPLOSION)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5. desc.ActivityType = ENACT_ACTIVE
  6.  
  7. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  8. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  9. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  10. desc.LocalPosition = vzbzd1
  11. vzbzd1:delete()
  12. desc.isAnimateTexture = false
  13. desc.RenderType = ENRENDERTYPE_GEOMETRY
  14.  
  15. Emitter = desc.PS.PSDescription
  16. Emitter.ParticleTypesNumber = 1
  17. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  18. Emitter.EmitterPosition = vzbzd2
  19. vzbzd2:delete()
  20. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  21. Emitter.EmitterDirection = vzbzd3
  22. vzbzd3:delete()
  23. Emitter.EmitterLifeTime = 1
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39. PT = Emitter.ParticleTypesParams[1]
  40. PT.IsEmitterLocked = false
  41. PT.DrawOrder = 1
  42. PT.Material = ENMAT_PARTICLE_LIGHT
  43.  
  44. PT.TextureName = "environment_effect_volcano2.dds"
  45.  
  46. PT.ParticlesPerSecond = 0.1;
  47. PT.InitialNumberOfParticles = 10.0;
  48. PT.BaseLifeTime = 1.5;
  49. PT.BaseLifeTimeVariance = 0.8;
  50. PT.BaseSpeed = 5.0;
  51. PT.BaseSpeedVariance = 1.0;
  52.  
  53. PT.TangentSpeed = 1.0;
  54. PT.TangentSpeedVariance = 0.1;
  55. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  56. PT.TangentDirection = vzbzd4
  57. vzbzd4:delete()
  58. PT.TangentAngleMin = 0.0;
  59. PT.TangentAngleMax = 6.28;
  60. PT.IsTangentDependOnBase = false;
  61.  
  62. PT.BaseAngle = 3.0;
  63. PT.BaseAngleVariance = 5.0;
  64. PT.BaseAngleSpeed = 0.5;
  65. PT.BaseAngleSpeedVariance = 0.3;
  66. PT.BaseAngleSpeedDirection = 0;
  67. local vzbzd5 = D3DXVECTOR3:new(0.0,1.0,0.0)
  68. PT.BaseDirection = vzbzd5
  69. vzbzd5:delete()
  70. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  71. PT.BaseDirectionVariance = vzbzd6
  72. vzbzd6:delete()
  73. local vzbzd7 = D3DXVECTOR3:new(0,10,0)
  74. PT.BasePosition = vzbzd7
  75. vzbzd7:delete()
  76. local vzbzd8 = D3DXVECTOR3:new(15,15,15)
  77. PT.BasePositionVariance = vzbzd8
  78. vzbzd8:delete()
  79. PT.BaseSize = 4.0;
  80. PT.BaseSizeVariance = 0.8;
  81.  
  82. -- color over time
  83. PT.ColorOverTimeR[1].TimePercent = 0.0;
  84. PT.ColorOverTimeR[1].Value = 0.8;
  85. PT.ColorOverTimeG[1].TimePercent = 0.0;
  86. PT.ColorOverTimeG[1].Value = 0.6;
  87. PT.ColorOverTimeB[1].TimePercent = 0.0;
  88. PT.ColorOverTimeB[1].Value = 0.4;
  89.  
  90. PT.ColorOverTimeR[2].TimePercent = 1.0;
  91. PT.ColorOverTimeR[2].Value = 0.5;
  92. PT.ColorOverTimeG[2].TimePercent = 1.0;
  93. PT.ColorOverTimeG[2].Value = 0.5;
  94. PT.ColorOverTimeB[2].TimePercent = 1.0;
  95. PT.ColorOverTimeB[2].Value = 0.5;
  96.  
  97. -- transparency over time
  98. PT.TransparencyOverTime[1].TimePercent = 0.0;
  99. PT.TransparencyOverTime[1].Value = 0.0;
  100.  
  101. PT.TransparencyOverTime[2].TimePercent = 0.1;
  102. PT.TransparencyOverTime[2].Value = 0.5;
  103.  
  104. PT.TransparencyOverTime[3].TimePercent = 1.0;
  105. PT.TransparencyOverTime[3].Value = 0.0;
  106.  
  107. -- size over time
  108. PT.SizeOverTime[1].TimePercent = 0.0;
  109. PT.SizeOverTime[1].Value = 3.0;
  110.  
  111. PT.SizeOverTime[2].TimePercent = 0.1;
  112. PT.SizeOverTime[2].Value = 7.0;
  113.  
  114. PT.SizeOverTime[3].TimePercent = 1.0;
  115. PT.SizeOverTime[3].Value = 9.0;
  116.  
  117. -- Speed over time
  118. PT.SpeedOverTime[1].TimePercent = 0.0;
  119. PT.SpeedOverTime[1].Value = 0.0;
  120.  
  121. PT.SpeedOverTime[2].TimePercent = 0.5;
  122. PT.SpeedOverTime[2].Value = 0.0;
  123.  
  124. PT.SpeedOverTime[3].TimePercent = 1.0;
  125. PT.SpeedOverTime[3].Value = 0.0;
  126.  
  127. -- Tangent Speed over time
  128. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  129. PT.TangentSpeedOverTime[1].Value = 5.0;
  130.  
  131. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  132. PT.TangentSpeedOverTime[2].Value = 0.0;
  133.  
  134.  
  135. -- GravityAcceleration over time
  136. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  137. PT.GravityAccelerationOverTime[1].Value = 5.0;
  138.  
  139. PT.GravityAccelerationOverTime[2].TimePercent = 0.1;
  140. PT.GravityAccelerationOverTime[2].Value = 5.0;
  141.  
  142. PT.GravityAccelerationOverTime[3].TimePercent = 1.0;
  143. PT.GravityAccelerationOverTime[3].Value = 5.0;
  144.  
  145. -- AngleSpeed over time
  146. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  147. PT.AngleSpeedOverTime[1].Value = 0.5;
  148.  
  149. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  150. PT.AngleSpeedOverTime[2].Value = 0.1;
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.